<?php include 'wp-includes/php/DBManager.class.php';

	$db = new DBManager ( 'localhost', 'root', '', 'iumus' );
	
	if ( isset ( $_GET['username'] ) ) $query = "SELECT * FROM `utente` WHERE `Username` = '".$_GET['username']."'";
	else $query = "SELECT * FROM `utente` WHERE `Email` = '".$_GET['mail']."'";
	
	$result = $db->executeQuery ( $query );
	
	$exist = 'NO';
	
	while( $row = mysql_fetch_array ( $result ) ) {
		$exist = 'YES';
	}
	
	echo $exist;


?>